from django.conf.urls.defaults import *
##@author Alessio Di Pietro
#@author Irene Scionti

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^versionSyncWebApp/', include('versionSyncWebApp.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
    #( r'^app/find/(?P<key>\w+)/(?P<entry_type>\d+)/$', 'versionSyncWebApp.helloworld.views.find' ),
    ( r'^app/find/$', 'versionSyncWebApp.websearch.views.find'),
    
    ( r'^app/ajax_find/(?P<key>[\w\s\-\@\*\+\=\-\[\]\\\/\{\}\|\:\<\>\?\,\.\+]*)/(?P<entry_type>\d+)/(?P<entry_field>\w+)/$', 'versionSyncWebApp.websearch.views.ajax_find'),
    
    ( r'^app/ajax_restore/(?P<entry_uid>[\w\-]+)/(?P<entry_revision>\d+)/(?P<entry_type>\d+)/$', 'versionSyncWebApp.websearch.views.ajax_restore'),
    ( r'^app/ajax_restore/(?P<entry_uid>[\w\-]+@[\w\-]+)/(?P<entry_revision>\d+)/(?P<entry_type>\d+)/$', 'versionSyncWebApp.websearch.views.ajax_restore'),
    #( r'^app/ajax_restore/(\w+)-(\w+)-(\w+)-(\w+)-(\w+)@(\w+)-(\w+)/(\d+)/(\d+)/$', 'versionSyncWebApp.websearch.views.ajax_restore'),

)
